<%@page import="news.entity.Board"%>
<%@page import="news.biz.BoardBiz"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <%
  		BoardBiz boardBiz=new BoardBiz();
  		List<Board> board=boardBiz.executeBoard();
  		
  %>
  
  <body background="pic/ManBgroud.gif">
    <form action="add_news_action.jsp" enctype="multipart/form-data"  method="post">
    	主题：<select name="board">
    			<%
    				for(int i = 0 ;i<board.size();i++){
    					Board c=board.get(i);
    			%>
    			<option value="<%=c.getBoardId()%>"><%=c.getBoardName() %></option>
    			<% }%>
    			    			
    		</select>
    		<br/>
    	标题：<input type="text" name="title"><br>
    	图片：<input type="file" name="pic"/><br/>
    	内容：<textarea name="content" rows="5" cols="50"></textarea>
    	<br/>
    	<input type="submit" value="确认发布">
    </form>
  </body>
</html>
